package com.cskaoyan.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.multipart.commons.CommonsMultipartResolver;

/**
 * @USER: cuiweiguo#
 * @DATE: 2022/5/6
 * @TIME: 15:02
 * @PROJECT_NAME: mallproject2
 */
@Configuration
public class FileUploadConfig {
    //<bean id="multipartResolver" class="org.springframework.web.multipart.commons.CommonsMultipartResolver"/>
    @Bean
    public CommonsMultipartResolver multipartResolver(){
        CommonsMultipartResolver multipartResolver = new CommonsMultipartResolver();
        return  multipartResolver;
    }
}
